package com.vilyever.socketclient.helper;

import android.support.annotation.NonNull;

import com.vilyever.socketclient.SocketClient;

/**
 * SocketClientDelegate
 * Created by vilyever on 2016/5/30.
 * Feature:
 */
public interface SocketClientDelegate {
    /**
     * 连接上远程端时的回调
     */
    void onConnected(SocketClient client);
    /**
     * 与远程端断开连接时的回调
     */
    void onDisconnected(SocketClient client);
    /**
     * 接收到数据包时的回调
     */
    void onResponse(SocketClient client, @NonNull SocketResponsePacket responsePacket);
}
